var cc__decorate = __decorate;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var $2pvzChannel = require("pvzChannel");
var $2UIManager = require("UIManager");
var $2kc = require("kc");
var $2KDefine = require("KDefine");
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
var ccp_property = cc__decorator.property;
var def_MaskUI = /* */function (_cc$Component46) {
  babel_inherits(d, _cc$Component46);
  var _super50 = babel_createSuper(d);
  function d() {
    var _this107;
    babel_classCallCheck(this, d);
    _this107 = _super50.apply(this, arguments);
    _this107.gb_btn = null;
    return _this107;
  }
  babel_createClass(d, [{
    key: "onLoad",
    value: function onLoad() {
      this.gb_btn = cc.find("gb_btn", this.node);
      this.gb_btn.on(cc.Node.EventType.TOUCH_START, this.on_close, this);
      $2kc.default.regMsgReciever($2KDefine.Msg.adInterErr, function () {
        $2UIManager.default.instance.closeUI("MaskUI");
        cc.director.resume();
        return true;
      });
    }
  }, {
    key: "on_close",
    value: function on_close() {
      $2pvzChannel.pvzChannel.instance().closeGird9();
      $2UIManager.default.instance.closeUI("MaskUI");
      cc.director.resume();
    }
  }]);
  return d;
}(cc.Component);
def_MaskUI = cc__decorate([ccp_ccclass], def_MaskUI);
exports.default = def_MaskUI;